import Taro from '@tarojs/taro';
import React, { Component } from 'react';
import { View, Text, Image } from '@tarojs/components';
import {IPLAND_OSS_HOST} from '../../constant';

interface BlankProps {
  content?: string;
  img?: string;
  style?: any;
  imgStyle?: any;
  textStyle?: any;
}

export default class Blank extends Component<BlankProps, any> {
  constructor(props: BlankProps) {
    super(props);
  }
  static options = {
    addGlobalClass: true,
  };

  static defaultProps = {
    content: '',
    img: 'http://pic.qianmi.com/astore/d2c-wx/images/list-none.png',
    styles: {},
  };

  render() {
    const { content, img, style, imgStyle, textStyle } = this.props;

    return (
      <View className="wm-list-none">
        <Image src={`${IPLAND_OSS_HOST}backpack/empty.png`} className="wm-none-img" style={{width:'400rpx',height:'300rpx'}}/>
        <Text className="wm-none-text" >
          {content}
        </Text>
      </View>
    );
  }
}
